package com.zy.entity;

public class Customer {//客户实体类
private int cid;
private String custName;
private String custSource;
private String custPhone;
private String custMobile;
//private int custLevel;  外键---关系到dict表的did
//如果一个表和另一个表表示表之间的关系，可以通过主外键来表示
//如果一个类和另一个类表示类之间的关系，可以通过交换对象来表示
//（补属性） 原实体类不要去修改【对修改关闭，对扩展开放】

private Dict dict=new Dict();//一个客户，一定属于某个级别  //初始化一下




public int getCid() {
	return cid;
}

public void setCid(int cid) {
	this.cid = cid;
}

public String getCustName() {
	return custName;
}

public void setCustName(String custName) {
	this.custName = custName;
}

public String getCustSource() {
	return custSource;
}

public void setCustSource(String custSource) {
	this.custSource = custSource;
}

public String getCustPhone() {
	return custPhone;
}

public void setCustPhone(String custPhone) {
	this.custPhone = custPhone;
}

public String getCustMobile() {
	return custMobile;
}

public void setCustMobile(String custMobile) {
	this.custMobile = custMobile;
}

public Dict getDict() {
	return dict;
}

public void setDict(Dict dict) {
	this.dict = dict;
}

@Override
public String toString() {
	return "Customer [cid=" + cid + ", custName=" + custName + ", custSource=" + custSource + ", custPhone=" + custPhone
			+ ", custMobile=" + custMobile + ", dict=" + dict + "]";
}







}
